package test;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class ExportDB {

	public static void main(String[] args) {
		Configuration cfg=new Configuration().configure();//读取配置文件
		SchemaExport export=new SchemaExport(cfg);
		export.create(true,true);
		System.out.println("导出数据库成功");
	}
}
